package com.foreverwin.mes.meapi.mapper;

import com.foreverwin.mes.meapi.model.Operation;
import com.foreverwin.mes.meapi.model.Resrce;
import com.baomidou.mybatisplus.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author Syngna
 * @since 2020-01-13
 */
@Repository
public interface ResrceMapper extends BaseMapper<Resrce> {

    List<Operation> selectOperation(@Param("site") String site, @Param("resrce") String resource );

    List<Resrce> selectEnhanceList(Resrce resrce);

    List<Resrce> selectByResourceType(@Param("site") String site, @Param("resourceType") String resourceType);
}